<?php

namespace front\models;

use Yii;

/**
 * This is the model class for table "refund_notes".
 *
 * @property integer $id
 * @property integer $map_id
 * @property integer $user_id
 * @property string $reason
 * @property integer $created_at
 */
class RefundnotesModel extends \common\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'refund_notes';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['map_id', 'user_id'], 'required'],
            [['map_id', 'user_id', 'created_at'], 'integer'],
            [['reason'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'map_id' => 'Map ID',
            'user_id' => 'User ID',
            'reason' => 'Reason',
            'created_at' => 'Created At',
        ];
    }
}
